﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;
using System;

namespace Agile.Models
{
    /// <summary>
    /// 组织表
    /// </summary>
    [Table("rbac_org")]
    [Description("组织表")]
    public partial class Org : TreeEntity, ITenant, ISoftDelete
    {
        public Org()
        {
            Name = string.Empty;
            HotKey = string.Empty;
            IconName = string.Empty;
            Status = 0;
            BizCode = string.Empty;
            CustomCode = string.Empty;
            CreateId = 0;
            TypeName = string.Empty;
            TypeId = string.Empty;
        }
        /// <summary>
        /// 所属租户
        /// </summary>
        [Description("所属租户")]
        public virtual string TenantId { get; set; }
        /// <summary>
        /// 软删除
        /// </summary>
        [Description("软删除")]
        public virtual int IsDelete { get; set; }
        /// <summary>
        /// 热键
        /// </summary>
        [Description("热键")]
        public string HotKey { get; set; }
        /// <summary>
        /// 是否叶子节点
        /// </summary>
        [Description("是否叶子节点")]
        public bool IsLeaf { get; set; }
        /// <summary>
        /// 是否自动展开
        /// </summary>
        [Description("是否自动展开")]
        public bool IsAutoExpand { get; set; }
        /// <summary>
        /// 节点图标文件名称
        /// </summary>
        [Description("节点图标文件名称")]
        public string IconName { get; set; }
        /// <summary>
        /// 当前状态
        /// </summary>
        [Description("当前状态")]
        public int Status { get; set; }
        /// <summary>
        /// 业务对照码
        /// </summary>
        [Description("业务对照码")]
        public string BizCode { get; set; }
        /// <summary>
        /// 自定义扩展码
        /// </summary>
        [Description("自定义扩展码")]
        public string CustomCode { get; set; }
        /// <summary>
        /// 创建人ID
        /// </summary>
        [Description("创建人ID")]
        public int CreateId { get; set; }
        /// <summary>
        /// 分类名称
        /// </summary>
        [Description("分类名称")]
        public string TypeName { get; set; }
        /// <summary>
        /// 分类ID
        /// </summary>
        [Description("分类ID")]
        public string TypeId { get; set; }

    }
}